package org.leafstar.shortlink.admin.dto.resp;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;
import org.apache.ibatis.annotations.ConstructorArgs;
import org.leafstar.shortlink.admin.common.serializer.PhoneDesensitizationSerializer;

import java.util.Date;

@Data
@ToString
public class UserRespDTO {
    /**
     * id
     */
    private Long id;
    /**
     * 用户名
     */
    private String username;
    /**
     * 真实姓名
     */
    private String realName;
    /**
     * 手机号
     */
    @JsonSerialize(using = PhoneDesensitizationSerializer.class)
    private String phone;
    /**
     * 邮箱
     */
    private String mail;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;
}
